package com.baidu;

import feign.RequestLine;
import lm.spring.feign.support.FeignClient;

/**
 * 请求示例，百度首页：https://www.baidu.com/
 * <br>
 * serviceName: 配置文件中配置的服务地址,也可以为接口的服务地址
 * <br/>
 * @author liangming 2021-12-25 3:51
 */
@FeignClient(serviceName = "https://www.baidu.com/")
public interface BaiduController {

    /**
     * 百度首页
     * @return
     * @throws Exception
     */
    @RequestLine("GET /")
    public String get() throws Exception;

    /**
     * 请求错误页面示例
     * @return
     * @throws Exception
     */
    @RequestLine("GET /1")
    public String getErrorPage() throws Exception;
}
